"use strict";

/**
 * @ngdoc function
 * @name jgappApp.controller:WebpagectrlCtrl
 * @description
 * # WebpagectrlCtrl
 * Controller of the jgappApp
 */
angular
  .module("jgappApp")
  .controller("WebpagectrlCtrl", function(Util, openApi, DataService) {
    var vm = this,
      data;
    var routeConfig = Util.getRouteConfig();
    // 根据消息类型判断参数
    if (routeConfig.type == "msg") {
      data = routeConfig.data.formData.params;
    } else {
      data = routeConfig.data;
    }
    DataService.getData(openApi.getplacard, data).then(function(data) {
      vm.data = data;
    });
  });
